﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PreOrder.ascx.cs" Inherits="usercontrol_PreOrder" %>
<link href="../style.css" rel="stylesheet" type="text/css" />
<table border="0" cellpadding="1" cellspacing="0" width="100%">
    <tr>
        <td colspan="6" style="text-align: center" class="hc1">
            <asp:Label ID="lbltitle" runat="server" CssClass="V24" Text="Thông Tin Đặt Hàng"></asp:Label>&nbsp;<br />
        </td>
    </tr>
    <tr>
        <td class="menu" colspan="2" rowspan="8" style="width: 30%;" valign="top">
            <table border="0" cellpadding="1" style="background-color: antiquewhite" width="100%" cellspacing="0">
                <tr>
                    <td align="center" colspan="3" valign="top">
                        <asp:Label ID="Label12" runat="server" CssClass="V18" Font-Bold="True">Thông tin khách hàng</asp:Label></td>
                </tr>
                <tr>
                    <td style="text-align: right" valign="top">
                        <asp:Label ID="Label1" runat="server" CssClass="V15" Text="Họ và Tên:"></asp:Label></td>
                    <td colspan="2" valign="top">
                        &nbsp;<asp:Label ID="lblFullName" runat="server" CssClass="V15" Font-Bold="True"></asp:Label></td>
                </tr>
                <tr>
                    <td style="text-align: right" valign="top">
                        <asp:Label ID="Label2" runat="server" CssClass="V15" Text="Địa chỉ liên hệ:"></asp:Label></td>
                    <td colspan="2" valign="top">
                        <span style="color: #ff6666">&nbsp;</span><asp:Label ID="lblAddressContact" runat="server"
                            CssClass="V15"></asp:Label></td>
                </tr>
                <tr>
                    <td style="text-align: right" valign="top">
                        <asp:Label ID="Label3" runat="server" CssClass="V15" Text="Địa chỉ nhận hàng:"></asp:Label></td>
                    <td colspan="2" valign="top">
                        &nbsp;<asp:Label ID="lblAddressIn" runat="server" CssClass="V15"></asp:Label></td>
                </tr>
                <tr>
                    <td style="text-align: right" valign="top">
                        <asp:Label ID="Label4" runat="server" CssClass="V15" Text="Email:"></asp:Label></td>
                    <td colspan="2" valign="top">
                        &nbsp;<asp:Label ID="lblEmail" runat="server" CssClass="V15"></asp:Label></td>
                </tr>
                <tr>
                    <td style="text-align: right" valign="top">
                        <asp:Label ID="Label5" runat="server" CssClass="V15" Text="Thanh toán:"></asp:Label></td>
                    <td colspan="2" valign="top">
                        &nbsp;<asp:Label ID="lblPayment" runat="server" CssClass="V15"></asp:Label></td>
                </tr>
                <tr>
                    <td style="text-align: right" valign="top">
                        <asp:Label ID="Label6" runat="server" CssClass="V15" Text="Số điện thoại:"></asp:Label></td>
                    <td colspan="2" valign="top">
                        &nbsp;<asp:Label ID="lblTel" runat="server" CssClass="V15"></asp:Label></td>
                </tr>
                <tr>
                    <td style="text-align: right" valign="top">
                        <asp:Label ID="Label7" runat="server" CssClass="V15" Text="Quốc gia:"></asp:Label></td>
                    <td colspan="2" valign="top">
                        &nbsp;<asp:Label ID="lblCountry" runat="server" CssClass="V15"></asp:Label></td>
                </tr>
                <tr>
                    <td style="text-align: right" valign="top">
                        <asp:Label ID="Label8" runat="server" CssClass="V15" Text="Tỉnh - Thành phố:" Width="136px"></asp:Label></td>
                    <td colspan="2" valign="top">
                        &nbsp;<asp:Label ID="lblProvice" runat="server" CssClass="V15"></asp:Label></td>
                </tr>
            </table>
        </td>
        <td colspan="4" rowspan="8" style="text-align: right; width: 70%;" valign="top">
            <table border="0" cellpadding="1" cellspacing="0" width="100%">
                <tr>
                    <td colspan="4">
                        <asp:GridView ID="GridVShoppingCart" runat="server" AutoGenerateColumns="False" EnableViewState="False" CaptionAlign="Top" CellPadding="2" Width="100%" GridLines="None">
                            <Columns>
                                <asp:TemplateField HeaderText="STT">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Index") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Index") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="ProductID" HeaderText="M&#227; Sản Phẩm" />
                                <asp:BoundField DataField="ProductName" HeaderText="T&#234;n Sản Phẩm" />
                                <asp:BoundField DataField="SalePrice" HeaderText="Gi&#225;" />
                                <asp:BoundField DataField="Quantity" HeaderText="Số Lượng" />
                                <asp:BoundField DataField="Amount" HeaderText="Th&#224;nh Tiền" />
                            </Columns>
                            <HeaderStyle CssClass="hc1" HorizontalAlign="Left" VerticalAlign="Top" />
                            <AlternatingRowStyle BackColor="LemonChiffon" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td align="left" colspan="2" valign="top">
                        &nbsp;
                    </td>
                    <td colspan="2" valign="top" align="right">
                        <table border="0" cellpadding="0" cellspacing="0" class="menu" style="text-align: left">
                            <tr>
                                <td class="hc1" colspan="3" style="text-align: right" valign="top">
                                    <br />
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right" valign="top">
                                    <asp:Label ID="Label9" runat="server" CssClass="V15" Font-Bold="True" Text="Tổng tiền:"></asp:Label></td>
                                <td style="text-align: right" valign="top">
                                    <asp:Label ID="lblTotal" runat="server" CssClass="Warning">0</asp:Label>
                                    VNĐ
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right" valign="top">
                                    <asp:Label ID="Label10" runat="server" CssClass="V15" Font-Bold="True" Text="Chi phí:"></asp:Label></td>
                                <td style="text-align: right" valign="top">
                                    &nbsp;&nbsp;
                                    <asp:Label ID="lblShipment" runat="server" CssClass="Warning">0</asp:Label>
                                    VNĐ
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="text-align: right">
                                    <span style="color: #ff6666">-----------------------------</span>&nbsp;</td>
                            </tr>
                            <tr>
                                <td style="text-align: right" valign="top">
                                    <asp:Label ID="Label11" runat="server" CssClass="V15" Font-Bold="True" Text="Tổng tiền phải trả:"></asp:Label></td>
                                <td style="text-align: right" valign="top">
                                    &nbsp;&nbsp;
                                    <asp:Label ID="lblGTotal" runat="server" CssClass="Warning" Font-Bold="True">0</asp:Label>
                                    VNĐ</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>           
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/back.png" PostBackUrl="~/Payment.aspx"
                ToolTip="Trở về " />
            <asp:ImageButton ID="imgbtnOrder" runat="server" ImageUrl="~/Images/order.gif" OnClick="imgbtnOrder_Click"
                ToolTip="Đặt hàng" />
            <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/images/printer.jpg"
                OnClientClick="In()" ToolTip="In trang này" /></td>
    </tr>   
</table>
<script language="javascript" type="text/javascript">
        function In()
        {
            window.print();
        }
    </script>
<asp:Label ID="lblWarning" runat="server" CssClass="Warning"></asp:Label>
